package cn.edu.sgu.www.mhxysy.dto.equipment;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class EquipmentTejiDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 特技名称
	 */
	@NotBlank(message = "特技名称" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "特技名称", required = true)
	private String name;

	/**
	 * 特技说明
	 */
	@NotBlank(message = "特技说明" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "特技说明", required = true)
	private String note;

	/**
	 * 特技类型
	 */
	@Positive(message = "特技类型" + CustomMessages.ILLEGAL)
	@NotNull(message = "特技类型" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "特技类型", required = true)
	private Integer type;

	/**
	 * 特技评分
	 */
	@Positive(message = "特技评分" + CustomMessages.ILLEGAL)
	@NotNull(message = "特技评分" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "特技评分", required = true)
	private Integer score;

	/**
	 * 消耗愤怒
	 */
	@Positive(message = "消耗愤怒" + CustomMessages.ILLEGAL)
	@NotNull(message = "消耗愤怒" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "消耗愤怒", required = true)
	private Integer fennu;
}